package com.zyh.homework.test1.domain;

public class Designer extends Programmer{
    public int bonus;

    public Designer() {
    }

    public Designer(String id, String name, int age, int salary, int bonus) {
        super(id, name, age, salary);
        this.bonus = bonus;
    }

    public int getBonus() {
        return bonus;
    }

    public void setBonus(int bonus) {
        this.bonus = bonus;
    }

    @Override
    public void getInfo() {
        System.out.println("编号:"+id+","+"姓名:"+name+","+"年龄:"+age+","+"薪资:"+salary+"编程语言是："+LANGUAGE+"奖金是：" + bonus);
    }
}
